package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserFollowService;
import com.gidgabs.modules.dao.TbUserFollowDao;
import com.gidgabs.modules.entity.TbUserFollowEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class TbUserFollowServiceImpl implements TbUserFollowService {
	@Autowired
	private TbUserFollowDao userFollowDao;
	
	@Override
	public TbUserFollowEntity queryObject(Integer id){
		return userFollowDao.queryObject(id);
	}
	
	@Override
	public List<TbUserFollowEntity> queryList(Map<String, Object> map){
		return userFollowDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userFollowDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserFollowEntity userFollow){
		userFollowDao.save(userFollow);
	}
	
	@Override
	public void update(TbUserFollowEntity userFollow){
		userFollowDao.update(userFollow);
	}
	
	@Override
	public void delete(Integer id){
		userFollowDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userFollowDao.deleteBatch(ids);
	}
	
}
